package com.thh.datamonitor.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.thh.common.annotation.Excel;
import com.thh.common.core.model.BaseEntity;

/**
 * 数据库配置对象 tmd_database
 * 
 * @author thh
 * @date 2022-06-23
 */
@Data
@TableName("tmd_database")
public class TmdDatabase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class) //解决前端js long类型精度丢失问题
    private Long databaseId;

    /** 名称 */
    @Excel(name = "名称")
    private String databaseName;

    /** 数据库类型 */
    @Excel(name = "数据库类型")
    private String databaseType;

    /** 库 */
    @Excel(name = "库")
    private String databaseDbname;

    /** 主机名(域名或IP) */
    @Excel(name = "主机名(域名或IP)")
    private String databaseHost;

    /** 端口 */
    @Excel(name = "端口")
    private Integer databasePort;

    /** 数据库用户名 */
    @Excel(name = "数据库用户名")
    private String databaseUser;

    /** 数据库密码 */
    @Excel(name = "数据库密码")
    private String databasePassword;

    /** 数据库状态 */
    private String status;
}
